package com.youlu.campus.service.visitor;

import com.youlu.campus.entity.UserBlackList;
import com.youlu.campus.entity.VO.req.UserBlackListQueryVO;
import org.springframework.data.domain.Page;

public interface UserBlackListService {
    /**
     * 是否存在
     *
     * @param userId
     * @return
     */
    boolean exist(String userId);

    boolean create(UserBlackList req);

    Page<UserBlackList> list(UserBlackListQueryVO req);

    boolean update(UserBlackList req);

    boolean delete(String id);

    UserBlackList findOne(String id);

    boolean create(String optUser, byte[] inputStream, String fileName, String comments);

    /**
     * 是否在黑名单中
     * @param mobile
     * @return
     */
    Boolean existsByMobile(String mobile);

}
